xen: arm: handle accesses to CNTP_CVAL_EL0
authorIan Campbell <ian.campbell@citrix.com>
Mon, 30 Mar 2015 11:12:24 +0000 (12:12 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 31 Mar 2015 08:42:18 +0000 (09:42 +0100)
commit9cfa8ebe2e82d38c2e0c32fa23ea920a43e414ca
tree6df628574299670ab557b720f50ae5dcb0708ba9
parentd306211e2131eb2d160522f21f21fceaa9dd054c
xen: arm: handle accesses to CNTP_CVAL_EL0

All OSes we have run on top of Xen use CNTP_TVAL_EL0 but for
completeness we really should handle CVAL too.

In vtimer_emulate_cp64 pull the propagation of the 64-bit result into
two 32-bit registers out of the switch to avoid duplicating for every
register. We also need to initialise x now since previously the only
register implemented register was R/O.

While adding HSR_SYSREG_CNTP_CVAL_EL0 also move
HSR_SYSREG_CNTP_CTL_EL0 so it is sorted correctly.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/traps.c
xen/arch/arm/vtimer.c
xen/include/asm-arm/sysregs.h